//
//  EquipmentUserModel.h
//  AILock
//
//  Created by 谭亚明 on 2020/7/13.
//  Copyright © 2020 tym. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface EquipmentUserModel : NSObject

@property(nonatomic,assign) NSInteger id;
@property(nonatomic,copy) NSString *userName;
@property(nonatomic,assign) NSInteger userId;
@property(nonatomic,assign) NSInteger groupUserId;
@property(nonatomic,assign) NSInteger type;//1/绑定app用户 2/绑定游客用户 3/未绑定用户
@property(nonatomic,assign) NSInteger equipmentId;
@property(nonatomic,copy) NSString *equipmentUserName;
@property(nonatomic,copy) NSString *equipmentUserType;
@property(nonatomic,assign) NSInteger  equipmentUserId;
@property(nonatomic,copy) NSString *effectiveTime;//时效 00 永久 01带时效
@property(nonatomic,assign) NSInteger userRole;//用户属性 0/用户 1/管理员 2/宾客 3/胁迫
@property(nonatomic,copy) NSString *startTime;
@property(nonatomic,copy) NSString *endTime;
@property(nonatomic,copy) NSString *validWeek;
@property(nonatomic,copy) NSString *createTime;
@property(nonatomic,copy) NSString *start;
@property(nonatomic,copy) NSString *end;
@property(nonatomic,copy) NSString *headImgUrl;
@property(nonatomic,assign) BOOL isSele;


-(NSString*)getEquipmentUserImage;

@end

@interface EquUsers : NSObject

@property(nonatomic,strong) NSArray *pwdList;
@property(nonatomic,strong) NSArray *fingerprintList;
@property(nonatomic,strong) NSArray *cardList;
@property(nonatomic,strong) NSArray *remoteControlList;
@end

//指纹锁用户换绑用户(用户拉取其他指纹、密码) request
@interface BindAppUser : NSObject

@property(nonatomic,assign) NSInteger userId;
@property(nonatomic,assign) NSInteger type;
@property(nonatomic,assign) NSInteger equipmentId;
@property(nonatomic,assign) NSInteger familyId;

@property(nonatomic,copy) NSArray  <EquipmentUserModel*>*equipmentUserList;
@end


@interface EquipmentMessage : NSObject

@property(nonatomic,copy) NSString *deviceId;
@property(nonatomic,assign) NSInteger equipmentId;
@property(nonatomic,assign) NSInteger equipmentUserId;
@property(nonatomic,assign) NSInteger packageAll;
@property(nonatomic,copy) NSString *message;
@property(nonatomic,assign) BOOL success;
@property(nonatomic,assign) NSInteger addUserResult;
@property(nonatomic,assign) NSInteger packageCur;

@end


NS_ASSUME_NONNULL_END
